package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ConferenceMapper;
import com.ruoyi.system.domain.Conference;
import com.ruoyi.system.service.IConferenceService;
import com.ruoyi.common.core.text.Convert;

/**
 * 会议Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-12
 */
@Service
public class ConferenceServiceImpl implements IConferenceService 
{
    @Autowired
    private ConferenceMapper conferenceMapper;

    /**
     * 查询会议
     * 
     * @param conId 会议主键
     * @return 会议
     */
    @Override
    public Conference selectConferenceByConId(Long conId)
    {
        return conferenceMapper.selectConferenceByConId(conId);
    }

    /**
     * 查询会议列表
     * 
     * @param conference 会议
     * @return 会议
     */
    @Override
    public List<Conference> selectConferenceList(Conference conference)
    {
        return conferenceMapper.selectConferenceList(conference);
    }

    /**
     * 新增会议
     * 
     * @param conference 会议
     * @return 结果
     */
    @Override
    public int insertConference(Conference conference)
    {
        return conferenceMapper.insertConference(conference);
    }

    /**
     * 修改会议
     * 
     * @param conference 会议
     * @return 结果
     */
    @Override
    public int updateConference(Conference conference)
    {
        return conferenceMapper.updateConference(conference);
    }

    /**
     * 批量删除会议
     * 
     * @param conIds 需要删除的会议主键
     * @return 结果
     */
    @Override
    public int deleteConferenceByConIds(String conIds)
    {
        return conferenceMapper.deleteConferenceByConIds(Convert.toStrArray(conIds));
    }

    /**
     * 删除会议信息
     * 
     * @param conId 会议主键
     * @return 结果
     */
    @Override
    public int deleteConferenceByConId(Long conId)
    {
        return conferenceMapper.deleteConferenceByConId(conId);
    }
}
